package org.devocean.groupbuying.dao;

import java.util.List;

import org.devocean.groupbuying.domain.Merchant;

public interface MerchantDAO {
	
	
	public List<Merchant> findAllMerchants();

	public long countMerchants();

	public List<Merchant> findMerchantsEntries(int firstResult, int maxResults);

	public Merchant findMerchantById(int id);

	public void deleteMerchant(int id);

	public Merchant saveMerchant(Merchant merchant);

	public Merchant updateMerchant(Merchant merchant);

	public List<Merchant> findMerchantByCriteria(String criteria, Integer start,
			Integer size);

	public long countMerchantsByCriteria(String criteria);

	//public Merchant findMerchant(String username);

}
